/// accCode : "1000.9049.9052"
/// applyPerson : null
/// applyPersonId : null
/// attatchId : null
/// autoOutbound : 0
/// autoOutboundName : "否"
/// branchId : 9052
/// brand : ""
/// createdBy : "5"
/// createdDate : "2024-01-03 16:06:14"
/// donate : 0
/// fixedAssets : 0
/// id : 33
/// isAllInbound : null
/// materialId : 646
/// materialName : "香皂"
/// materialType : 23
/// materialTypeName : "生活用品"
/// model : ""
/// moneyString : null
/// numString : null
/// office : null
/// officeChildrenId : null
/// officeId : null
/// orderNo : null
/// orgId : 9049
/// orgName : "杭州"
/// outboundOrderId : null
/// path : ""
/// pdfIndex : null
/// price : 2.000
/// priceString : null
/// purchaseBranchId : null
/// purchaseDetailId : null
/// purchaseOrderId : null
/// purchaseType : null
/// purchaseTypeName : null
/// receiptNo : "RKhzsshflzx（hzsgry）20240103022"
/// receiptOrderId : 30
/// receiptType : 4
/// receiptTypeName : "直接入库"
/// remainingQuantity : 9.000
/// remark : ""
/// saasId : 1000
/// specification : ""
/// status : 1
/// statusName : "已入库"
/// stockQuantity : 9.000
/// storageDate : "2024-01-03 16:06:14"
/// storagePrice : 2.000
/// supplierId : "6"
/// supplierName : "浙江供应商"
/// tenantId : 1000
/// totalStoragePrice : 18.000000
/// unit : "块"
/// updatedBy : "5"
/// updatedDate : "2024-01-03 16:06:14"
/// warehouse : "中心仓库"
/// warehouseId : 5
/// warehousingPerson : "超级管理员"
/// warehousingPersonId : 5

class NewGoodsListData {
  NewGoodsListData({
      this.accCode, 
      this.applyPerson, 
      this.applyPersonId, 
      this.attatchId, 
      this.autoOutbound, 
      this.autoOutboundName, 
      this.branchId, 
      this.brand, 
      this.createdBy, 
      this.createdDate, 
      this.donate, 
      this.fixedAssets, 
      this.id, 
      this.isAllInbound, 
      this.materialId, 
      this.materialName, 
      this.materialType, 
      this.materialTypeName, 
      this.model, 
      this.moneyString, 
      this.numString, 
      this.office, 
      this.officeChildrenId, 
      this.officeId, 
      this.orderNo, 
      this.orgId, 
      this.orgName, 
      this.outboundOrderId, 
      this.path, 
      this.pdfIndex, 
      this.price, 
      this.priceString, 
      this.purchaseBranchId, 
      this.purchaseDetailId, 
      this.purchaseOrderId, 
      this.purchaseType, 
      this.purchaseTypeName, 
      this.receiptNo, 
      this.receiptOrderId, 
      this.receiptType, 
      this.receiptTypeName, 
      this.remainingQuantity, 
      this.remark, 
      this.saasId, 
      this.specification, 
      this.status, 
      this.statusName, 
      this.stockQuantity, 
      this.storageDate, 
      this.storagePrice, 
      this.supplierId, 
      this.supplierName, 
      this.tenantId, 
      this.totalStoragePrice, 
      this.unit, 
      this.updatedBy, 
      this.updatedDate, 
      this.warehouse, 
      this.warehouseId, 
      this.warehousingPerson, 
      this.warehousingPersonId,
  this.applyQuantity,this.inventoryQuantity});

  NewGoodsListData.fromJson(dynamic json) {
    accCode = json['accCode'];
    applyPerson = json['applyPerson'];
    applyPersonId = json['applyPersonId'];
    attatchId = json['attatchId'];
    autoOutbound = json['autoOutbound'];
    autoOutboundName = json['autoOutboundName'];
    branchId = json['branchId'];
    brand = json['brand'];
    createdBy = json['createdBy'];
    createdDate = json['createdDate'];
    donate = json['donate'];
    fixedAssets = json['fixedAssets'];
    id = json['id'];
    isAllInbound = json['isAllInbound'];
    materialId = json['materialId'];
    materialName = json['materialName'];
    materialType = json['materialType'];
    materialTypeName = json['materialTypeName'];
    model = json['model'];
    moneyString = json['moneyString'];
    numString = json['numString'];
    office = json['office'];
    officeChildrenId = json['officeChildrenId'];
    officeId = json['officeId'];
    orderNo = json['orderNo'];
    orgId = json['orgId'];
    orgName = json['orgName'];
    outboundOrderId = json['outboundOrderId'];
    path = json['path'];
    pdfIndex = json['pdfIndex'];
    price = json['price'];
    priceString = json['priceString'];
    purchaseBranchId = json['purchaseBranchId'];
    purchaseDetailId = json['purchaseDetailId'];
    purchaseOrderId = json['purchaseOrderId'];
    purchaseType = json['purchaseType'];
    purchaseTypeName = json['purchaseTypeName'];
    receiptNo = json['receiptNo'];
    receiptOrderId = json['receiptOrderId'];
    receiptType = json['receiptType'];
    receiptTypeName = json['receiptTypeName'];
    remainingQuantity = json['remainingQuantity'];
    remark = json['remark'];
    saasId = json['saasId'];
    specification = json['specification'];
    status = json['status'];
    statusName = json['statusName'];
    stockQuantity = json['stockQuantity'];
    storageDate = json['storageDate'];
    storagePrice = json['storagePrice'];
    supplierId = json['supplierId'];
    supplierName = json['supplierName'];
    tenantId = json['tenantId'];
    totalStoragePrice = json['totalStoragePrice'];
    unit = json['unit'];
    updatedBy = json['updatedBy'];
    updatedDate = json['updatedDate'];
    warehouse = json['warehouse'];
    warehouseId = json['warehouseId'];
    warehousingPerson = json['warehousingPerson'];
    warehousingPersonId = json['warehousingPersonId'];
    materialNo = json['materialNo'];
    assetType = json['assetType'];
    applyQuantity = json['applyQuantity'];
    inventoryQuantity = json['inventoryQuantity'];
    var dynamicber = json['quantity'];
    if(dynamicber!=null){
      selectNumber = dynamicber??0;
    }
  }
  String? accCode;
  dynamic applyPerson;
  dynamic applyPersonId;
  dynamic attatchId;
  num? autoOutbound;
  String? autoOutboundName;
  num? branchId;
  String? brand;
  String? createdBy;
  String? createdDate;
  num? donate;
  num? fixedAssets;
  num? id;
  dynamic isAllInbound;
  num? materialId;
  String? materialName;
  String? materialNo;
  dynamic assetType;
  num? materialType;
  String? materialTypeName;
  String? model;
  dynamic moneyString;
  dynamic numString;
  dynamic office;
  dynamic officeChildrenId;
  dynamic officeId;
  dynamic orderNo;
  num? orgId;
  String? orgName;
  dynamic outboundOrderId;
  String? path;
  dynamic pdfIndex;
  num? price;
  dynamic priceString;
  dynamic purchaseBranchId;
  dynamic purchaseDetailId;
  dynamic purchaseOrderId;
  dynamic purchaseType;
  dynamic purchaseTypeName;
  String? receiptNo;
  num? receiptOrderId;
  num? receiptType;
  String? receiptTypeName;
  num? remainingQuantity;
  num? inventoryQuantity;
  String? remark;
  num? saasId;
  String? specification;
  num? status;
  String? statusName;
  num? stockQuantity;
  String? storageDate;
  num? storagePrice;
  String? supplierId;
  String? supplierName;
  num? tenantId;
  num? totalStoragePrice;
  String? unit;
  String? updatedBy;
  String? updatedDate;
  String? warehouse;
  num? warehouseId;
  String? warehousingPerson;
  num? warehousingPersonId;
  num selectNumber = 0;
  num? applyQuantity;
NewGoodsListData copyWith({  String? accCode,
  dynamic applyPerson,
  dynamic applyPersonId,
  dynamic attatchId,
  num? autoOutbound,
  String? autoOutboundName,
  num? branchId,
  String? brand,
  String? createdBy,
  String? createdDate,
  num? donate,
  num? fixedAssets,
  num? id,
  dynamic isAllInbound,
  num? materialId,
  String? materialName,
  num? materialType,
  String? materialTypeName,
  String? model,
  dynamic moneyString,
  dynamic numString,
  dynamic office,
  dynamic officeChildrenId,
  dynamic officeId,
  dynamic orderNo,
  num? orgId,
  String? orgName,
  dynamic outboundOrderId,
  String? path,
  dynamic pdfIndex,
  num? price,
  dynamic priceString,
  dynamic purchaseBranchId,
  dynamic purchaseDetailId,
  dynamic purchaseOrderId,
  dynamic purchaseType,
  dynamic purchaseTypeName,
  String? receiptNo,
  num? receiptOrderId,
  num? receiptType,
  String? receiptTypeName,
  num? remainingQuantity,
  String? remark,
  num? saasId,
  String? specification,
  num? status,
  String? statusName,
  num? stockQuantity,
  String? storageDate,
  num? storagePrice,
  String? supplierId,
  String? supplierName,
  num? tenantId,
  num? totalStoragePrice,
  String? unit,
  String? updatedBy,
  String? updatedDate,
  String? warehouse,
  num? warehouseId,
  String? warehousingPerson,
  num? warehousingPersonId,
  num? inventoryQuantity,
}) => NewGoodsListData(  accCode: accCode ?? this.accCode,
  applyPerson: applyPerson ?? this.applyPerson,
  applyPersonId: applyPersonId ?? this.applyPersonId,
  attatchId: attatchId ?? this.attatchId,
  autoOutbound: autoOutbound ?? this.autoOutbound,
  autoOutboundName: autoOutboundName ?? this.autoOutboundName,
  branchId: branchId ?? this.branchId,
  brand: brand ?? this.brand,
  createdBy: createdBy ?? this.createdBy,
  createdDate: createdDate ?? this.createdDate,
  donate: donate ?? this.donate,
  fixedAssets: fixedAssets ?? this.fixedAssets,
  id: id ?? this.id,
  isAllInbound: isAllInbound ?? this.isAllInbound,
  materialId: materialId ?? this.materialId,
  materialName: materialName ?? this.materialName,
  materialType: materialType ?? this.materialType,
  materialTypeName: materialTypeName ?? this.materialTypeName,
  model: model ?? this.model,
  moneyString: moneyString ?? this.moneyString,
  numString: numString ?? this.numString,
  office: office ?? this.office,
  officeChildrenId: officeChildrenId ?? this.officeChildrenId,
  officeId: officeId ?? this.officeId,
  orderNo: orderNo ?? this.orderNo,
  orgId: orgId ?? this.orgId,
  orgName: orgName ?? this.orgName,
  outboundOrderId: outboundOrderId ?? this.outboundOrderId,
  path: path ?? this.path,
  pdfIndex: pdfIndex ?? this.pdfIndex,
  price: price ?? this.price,
  priceString: priceString ?? this.priceString,
  purchaseBranchId: purchaseBranchId ?? this.purchaseBranchId,
  purchaseDetailId: purchaseDetailId ?? this.purchaseDetailId,
  purchaseOrderId: purchaseOrderId ?? this.purchaseOrderId,
  purchaseType: purchaseType ?? this.purchaseType,
  purchaseTypeName: purchaseTypeName ?? this.purchaseTypeName,
  receiptNo: receiptNo ?? this.receiptNo,
  receiptOrderId: receiptOrderId ?? this.receiptOrderId,
  receiptType: receiptType ?? this.receiptType,
  receiptTypeName: receiptTypeName ?? this.receiptTypeName,
  remainingQuantity: remainingQuantity ?? this.remainingQuantity,
  remark: remark ?? this.remark,
  saasId: saasId ?? this.saasId,
  specification: specification ?? this.specification,
  status: status ?? this.status,
  statusName: statusName ?? this.statusName,
  stockQuantity: stockQuantity ?? this.stockQuantity,
  storageDate: storageDate ?? this.storageDate,
  storagePrice: storagePrice ?? this.storagePrice,
  supplierId: supplierId ?? this.supplierId,
  supplierName: supplierName ?? this.supplierName,
  tenantId: tenantId ?? this.tenantId,
  totalStoragePrice: totalStoragePrice ?? this.totalStoragePrice,
  unit: unit ?? this.unit,
  updatedBy: updatedBy ?? this.updatedBy,
  updatedDate: updatedDate ?? this.updatedDate,
  warehouse: warehouse ?? this.warehouse,
  warehouseId: warehouseId ?? this.warehouseId,
  warehousingPerson: warehousingPerson ?? this.warehousingPerson,
  warehousingPersonId: warehousingPersonId ?? this.warehousingPersonId,
  inventoryQuantity: inventoryQuantity ?? this.inventoryQuantity,
);
  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['accCode'] = accCode;
    map['applyPerson'] = applyPerson;
    map['applyPersonId'] = applyPersonId;
    map['attatchId'] = attatchId;
    map['autoOutbound'] = autoOutbound;
    map['autoOutboundName'] = autoOutboundName;
    map['branchId'] = branchId;
    map['brand'] = brand;
    map['createdBy'] = createdBy;
    map['createdDate'] = createdDate;
    map['donate'] = donate;
    map['fixedAssets'] = fixedAssets;
    map['id'] = id;
    map['isAllInbound'] = isAllInbound;
    map['materialId'] = materialId;
    map['materialName'] = materialName;
    map['materialType'] = materialType;
    map['materialTypeName'] = materialTypeName;
    map['model'] = model;
    map['moneyString'] = moneyString;
    map['numString'] = numString;
    map['office'] = office;
    map['officeChildrenId'] = officeChildrenId;
    map['officeId'] = officeId;
    map['orderNo'] = orderNo;
    map['orgId'] = orgId;
    map['orgName'] = orgName;
    map['outboundOrderId'] = outboundOrderId;
    map['path'] = path;
    map['pdfIndex'] = pdfIndex;
    map['price'] = price;
    map['priceString'] = priceString;
    map['purchaseBranchId'] = purchaseBranchId;
    map['purchaseDetailId'] = purchaseDetailId;
    map['purchaseOrderId'] = purchaseOrderId;
    map['purchaseType'] = purchaseType;
    map['purchaseTypeName'] = purchaseTypeName;
    map['receiptNo'] = receiptNo;
    map['receiptOrderId'] = receiptOrderId;
    map['receiptType'] = receiptType;
    map['receiptTypeName'] = receiptTypeName;
    map['remainingQuantity'] = remainingQuantity;
    map['remark'] = remark;
    map['saasId'] = saasId;
    map['specification'] = specification;
    map['status'] = status;
    map['statusName'] = statusName;
    map['stockQuantity'] = stockQuantity;
    map['storageDate'] = storageDate;
    map['storagePrice'] = storagePrice;
    map['supplierId'] = supplierId;
    map['supplierName'] = supplierName;
    map['tenantId'] = tenantId;
    map['totalStoragePrice'] = totalStoragePrice;
    map['unit'] = unit;
    map['updatedBy'] = updatedBy;
    map['updatedDate'] = updatedDate;
    map['warehouse'] = warehouse;
    map['warehouseId'] = warehouseId;
    map['warehousingPerson'] = warehousingPerson;
    map['warehousingPersonId'] = warehousingPersonId;
    map['materialNo'] = materialNo;
    map['assetType'] = assetType;
    map['applyQuantity'] = applyQuantity;
    map['inventoryQuantity'] = inventoryQuantity;
    return map;
  }

  @override
  bool operator ==(Object other) =>
      identical(this, other) ||
      other is NewGoodsListData &&
          runtimeType == other.runtimeType &&
          id == other.id &&
          materialNo == other.materialNo;

  @override
  int get hashCode => id.hashCode ^ materialNo.hashCode;
}